﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ImportDataUtil
{
    /// <summary>
    /// 数据库字段信息结构
    /// </summary>
    public class DBFieldItem
    {
        public DBFieldItem()
        { }

        public DBFieldItem(string fieldName, object fieldValue, EnumDBFieldType fieldType)
        {
            _name = fieldName;
            _value = fieldValue;
            _fieldType = fieldType;
        }

        private string _name;
        private object _value;
        EnumDBFieldType _fieldType;

        /// <summary>
        /// 字段名
        /// </summary>
        public string Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }

        /// <summary>
        /// 字段值
        /// </summary>
        public object Value
        {
            get
            {
                return _value;
            }
            set
            {
                this._value = value;
            }
        }

        /// <summary>
        /// 字段类型
        /// </summary>
        public EnumDBFieldType FieldType
        {
            get { return _fieldType; }
            set { _fieldType = value; }
        }
    }
}
